home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
serien
/
purity
/
nr.10
/
demo
/
sparx.i
/
.spark16.i
< prev
next >
Wrap
Text File
|
1995-04-19
|
825b
|
61 lines
Procedure Spark16( rgbx : ColorArrayPtr);
Const
max4lines = 50;
Type
Sp1lines = Array[1..max4lines] of line;
Sp1LinesPtr = ^Sp1Lines;
moreColors = Array[0..maxColors] of Short;
moreColorsPtr = ^moreColors;
Var
xy : line;
arr : moreColorsPtr;
CCNT,i,
actualline : Short;
Begin
SetSColors( rgbx );
New(arr);
ActualLine := 1;
For i:=0 to MaxColors-1 do begin
arr^[i] := rgbx^[i];
end;
CCNT := 2; { color }
xy.y1 := 0;
xy.y2 := 255;
For i:=0 to 319 do begin
xy.x1 := i;
xy.x2 := i;
DrawLine( Adr(xy), CCNT );
inc( CCNT );
If CCNT >= maxColors then CCNT := 2;
End;
Repeat
arr^[maxColors]:=arr^[2];
for i:=3 to MaxColors do
arr^[i-1] := arr^[i];
SetSColors( arr );
Until LeftMouseButton;
Ciao;
Dispose(arr);
SetSColors(Adr(Def_Colors));
End;